<%@ page pageEncoding="UTF-8" %>
<c:import url="../../../template/layout.jsp" charEncoding="UTF-8">
    <c:param name="title" value="添加码表"/>
    <c:param name="body">

        <div class="content-title">添加码表</div>

        <form name="code" class="form-horizontal" action="${pageContext.request.contextPath}/system/code/edit"
              method="post">
            <div align="left" style="width: 600px; margin-right: auto; margin-left: auto;">
                <div class="form-group">
                    <label for="codetypeId" class="col-sm-2 control-label"><span style="color:red;">*</span>码表类</label>

                    <div class="col-sm-10">
                        <select class="form-control" name="codetypeId" required>
                            <option value="00">自定义</option>
                            <c:forEach items="${codetypes}" var="codetype">
                                <option value="${codetype.id}">${codetype.codetypeName}</option>
                            </c:forEach>
                        </select>
                        <input type="text" class="form-control" name="codetypeId2"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="codeKey" class="col-sm-2 control-label"><span style="color:red;">*</span>码键</label>

                    <div class="col-sm-10">
                        <input type="number" class="form-control" name="codeKey" required>
                    </div>
                </div>

                <div class="form-group">
                    <label for="codeValue" class="col-sm-2 control-label"><span
                            style="color:red;">*</span>码值</label>

                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="codeValue" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="codeDescription" class="col-sm-2 control-label"><span
                            style="color:red;">*</span>描述</label>

                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="codeDescription" required>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="submit" value="提交" class="btn btn-primary"/> <input type="reset" value="重置"
                                                                                         class="btn btn-default"/>
                    </div>
                </div>
            </div>
        </form>

    </c:param>
</c:import>
